var pdr_protela = 60;
var protela = pdr_protela;

$(document).ready(function () {
    
    setInterval(function(){ protetortela(); }, 1000);
    
    $(document).hover(function(){ hidetela() });
    $(document).mousemove(function(){ hidetela(); });
    $(document).keypress(function(){ hidetela(); });
    $('.tl_descanco').click(function(){ hidetela(); });
    //$(document).on("swipe",function(){  hidetela(); });
});     

function protetortela(){
    
    if(protela <= 0){
        $('.tl_descanco').fadeIn();
    }else{
        protela = parseInt(protela) - 1;
        $('.tl_descanco').fadeOut();
    }  
}
function hidetela(){
    $('.tl_descanco').fadeOut(); 
    protela = pdr_protela;
}

